package com.byzk.p2p.front.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.byzk.p2p.admin.user.dto.User;
import com.byzk.p2p.front.vo.ProtocolVo;

public interface FrontUserDao {

	public Integer insert(User user);

	public Integer update(User user);

	public List<User> getByUser(User user);

	public User getUserByInviteCode(String inviteCode);
	
	public User selectByNameOrPhone(String uesrname);
	
	public User selectByUserId(Integer id);
	
	public User selectByInviteCode(String inviteCode);
	
	public ProtocolVo selectByUserIdAndBorrowId(@Param("userId")Integer userId,@Param("borrowId")Integer borrowId);
	
}
